# !/usr/bin/env python
# encoding: utf-8


"""
  @author: gaogao
  @file: re_util.py
  @time: 2022/9/20 15:46
  @desc:
"""
import re


def sub_string(template):
    rule = r"\[(.*?)\]"
    slot_list = re.findall(rule, template)
    return slot_list
